package cn.gov.ssxmzj.entry;

/**
 * 返回实体类
 *
 * @author wangmc
 */
public class Result {

    //成功状态码
    public static String SUCCESS = "0000";
    //业务异常
    public static String SERVICE_ERROR = "8888";
    //失败状态码
    public static String ERROR = "9999";

    private String status;
    private String detail;
    private Object data;

    public Result(){

    }

    public Result(String status, String detail, Object data) {
        this.status = status;
        this.detail = detail;
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "status='" + status + '\'' +
                ", detail='" + detail + '\'' +
                ", data=" + data +
                '}';
    }
}
